$(document).ready(function(){
	$(".itemRows").each(function(idx, item){
		$(item).mouseenter(function(event){
			$(item).css("background-color", "#fdeada");
		}).mouseleave(function(event){
			$(item).css("background-color", "#fff");
		});
	});
	
	$(":input[name='detailBtn']").each(function(idx, item){
		$(item).on("click", function(event){
			var fields = $(item).parent("td").parent("tr").find(">td");
			var cdId = $(fields).eq(2).text();
			var cdAlias = $(fields).eq(3).text();
			var options = new Object();
			options["url"] = "/template/system/code/_detail/"+cdId;
			options["jqwId"] = "detailJqwPop";
			options["title"] = "["+cdAlias+"] 상세 정보";
			options["resizable"] = false;
			options["width"] = "500";
			options["height"] = "300";
			jqwOpen(options);
		});
	});
	
	$(":input[name='reviseBtn']").each(function(idx, item){
		$(item).on("click", function(event){
			var fields = $(item).parent("td").parent("tr").find(">td");
			var cdId = $(fields).eq(2).text();
			var cdAlias = $(fields).eq(3).text();
			var options = new Object();
			options["url"] = "/template/system/code/_regFormRevise/"+cdId;
			options["jqwId"] = "reviseJqwPop";
			options["title"] = "["+cdAlias+"] 코드 수정";
			options["resizable"] = false;
			options["width"] = "500";
			options["height"] = "310";
			jqwOpen(options);
		});
	});
	
	/*$(":input[name='delBtn']").each(function(idx, item){
		$(item).on("click", function(event){
			var fields = $(item).parent("td").parent("tr").find(">td");
			var cdId = $(fields).eq(2).text();
			var cdAlias = $(fields).eq(3).text();
			
			if(confirm("["+cdAlias+"] 을 삭제 하시겠습니까?")){
				
			}
		});
	});*/
});
